package com.demo.service;

import com.demo.mapper.RoleMapper;
import com.demo.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenyuan
 * @date 2020/9/25 16:10
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public Role getRoleAndPower(int id) {
        return roleMapper.getRoleAndPower(id);
    }
}
